import React from 'react';
import ReactDOM from 'react-dom/client';
import './index.css';
import App from './App';

function render(props) {
  const { container } = props;
  const root = ReactDOM.createRoot(container ? container.querySelector("#root") : document.getElementById('root'));
  root.render(
    <App />
  );
}

if (!window.__POWERED_BY_QIANKUN__) {
  render({});
}


export async function bootstrap(props) {
  console.log('');
}

export async function mount(props) {
  render(props)

}
export async function unmount(props) {
  console.log('');

}
